package com.kaifamiao.month04.day29;

import java.io.File;
import java.io.FileFilter;
import java.lang.reflect.Method;
import java.lang.reflect.Modifier;
import java.nio.file.NoSuchFileException;
import java.util.ArrayList;
import java.util.List;

public class Test {

    private static void test(){

    }

    public void t() {

    }

    public static void main(String[] args) throws NoSuchFileException {
//        String str = "com.kaifamiao.month04.day07".replace('.', '\\');
//        File file = new File("src", str);
//        System.out.println(file.getAbsolutePath());
        Method[] methods = Test.class.getDeclaredMethods();
        List<Method> list = new ArrayList<>();
        for (Method m : methods) {
            if (!Modifier.isPrivate(m.getModifiers())) {
                list.add(m);
            }
        }
        System.out.println(list);

    }
}
